home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / game / shoot / athrust.lha / AmigaThrust / src / thrust_t.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-05  |  479 b   |  31 lines

  1.  
  2. /* Written by Peter Ekberg, peda@lysator.liu.se */
  3.  
  4. #ifndef THRUST_TYPES_H
  5. #define THRUST_TYPES_H
  6.  
  7. #define incr(x,max,return) \
  8. { \
  9.     (x)++; \
  10.     if((x)>=(max)) \
  11.       (x)=(return); \
  12. }
  13. #define decr(x,min,return) \
  14. { \
  15.     (x)--; \
  16.     if((x)<(min)) \
  17.       (x)=(return)-1; \
  18. }
  19.  
  20. #define min(x,y) \
  21.  (((x)<(y))?(x):(y))
  22.  
  23. #define max(x,y) \
  24.  (((x)<(y))?(y):(x))
  25.  
  26. typedef unsigned char byte;
  27. typedef unsigned int word;
  28. typedef unsigned long dword;
  29.  
  30. #endif /* THRUST_TYPES_H */
  31.